package com.example.adapter.demo.login.v3.adapter;

import com.example.adapter.demo.login.v3.ResultMsg;

/**
 * @author zhoubin
 */
public class LoginForWechatAdapter extends AbstractAdapter {

    private String openId;

    public LoginForWechatAdapter(String openId) {
        this.openId = openId;
    }

    @Override
    public boolean support(Object loginAdapter) {
        return loginAdapter instanceof LoginForWechatAdapter;
    }

    @Override
    public ResultMsg login() {
        ResultMsg resultMsg = super.loginForRegist(openId, null);
        System.out.println("微信 登录成功");
        return resultMsg;
    }
}
